﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.IO;

using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using DNA;


[assembly: ExtensionApplication(typeof(TJADRICD.CollaborativeDesignPlugin.PluginEntry))]
[assembly: CommandClass(typeof(TJADRICD.CollaborativeDesignPlugin.CommandSign))]
[assembly: CommandClass(typeof(TJADRICD.CollaborativeDesignPlugin.CommandSplit))]
[assembly: CommandClass(typeof(TJADRICD.CollaborativeDesignPlugin.CommandFrame))]
[assembly: CommandClass(typeof(TJADRICD.CollaborativeDesignPlugin.CommandDebug))]

namespace TJADRICD.CollaborativeDesignPlugin
{
    public class PluginEntry : IExtensionApplication
    {
        #region IExtensionApplication Members
        public void Initialize()
        {
            Tools.WriteMessageWithReturn("欢迎使用TJADRI协同插件程序 v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString());

            Data.Load();
            Config.Load();
            Config.Check();
            CommandDebug.Initial();
        }

        public void Terminate()
        {
            // Debug.WriteLine("程序结束，你可以在里做一些程序的清理工作，如关闭AutoCAD文档");
        }

        #endregion
    }
}
